package com.handpay.zztong.hp.base.model.banklist;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

import java.util.List;

/**
 * Created by lyang on 2017/2/22.
 */

public class BankProvinceListBean extends ResponseBean {
    /**
     * items : 39
     * list : [{"provinceId":"81","provinceName":"湖北"}]
     */

    private int items;
    private List<ListBean> list;

    public int getItems() {
        return items;
    }

    public void setItems(int items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements android.os.Parcelable {
        /**
         * provinceId : 81
         * provinceName : 湖北
         */

        private String provinceId;
        private String provinceName;

        public String getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(String provinceId) {
            this.provinceId = provinceId;
        }

        public String getProvinceName() {
            return provinceName;
        }

        public void setProvinceName(String provinceName) {
            this.provinceName = provinceName;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.provinceId);
            dest.writeString(this.provinceName);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.provinceId = in.readString();
            this.provinceName = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(this.items);
        dest.writeTypedList(this.list);
    }

    public BankProvinceListBean() {
    }

    protected BankProvinceListBean(Parcel in) {
        super(in);
        this.items = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Creator<BankProvinceListBean> CREATOR = new Creator<BankProvinceListBean>() {
        @Override
        public BankProvinceListBean createFromParcel(Parcel source) {
            return new BankProvinceListBean(source);
        }

        @Override
        public BankProvinceListBean[] newArray(int size) {
            return new BankProvinceListBean[size];
        }
    };
}
